<%--
  Created by IntelliJ IDEA.
  User: WangBin
  Date: 2015/9/3
  Time: 17:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%@include file="/resources/common/taglibs.jspf" %>
    <title></title>
</head>
<body ng-app ng-controller="userController">
<%@include file="/resources/common/navbar.jspf" %>
<div class="container">
    <table class="table table-striped table-striped table-bordered table-hover">
        <thead>
        <tr>
            <th>ID</th>
            <th>姓名</th>
            <th>帐号</th>
            <th>密码</th>
            <th>性别</th>
            <th>邮箱</th>
            <th>权限</th>
        </tr>
        </thead>
        <tbody ng-repeat="user in userList">
        <tr>
            <td>{{user.id}}</td>
            <td>{{user.name}}</td>
            <td>{{user.username}}</td>
            <td>{{user.password}}</td>
            <td>{{user.sex}}</td>
            <td>{{user.email}}</td>
            <td>{{user.roleName}}</td>
        </tr>
        </tbody>
    </table>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
    1233123<br/>
</div>
<script>
    var userController = function ($scope, $http) {
        var url = "user/list";
        $http.get(url).success(function (response) {
            $scope.userList = response;
        });
    }
</script>
</body>
</html>
